package com.powermanager.bean;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by lqy on 16/7/6.
 */
public class DayBean implements Parcelable {
    public int tag;
    public String name;
    public DayBean(int tag,String name){
        this.tag = tag;
        this.name = name;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeInt(this.tag);
        dest.writeString(this.name);
    }

    protected DayBean(Parcel in) {
        this.tag = in.readInt();
        this.name = in.readString();
    }

    public static final Parcelable.Creator<DayBean> CREATOR = new Parcelable.Creator<DayBean>() {
        @Override
        public DayBean createFromParcel(Parcel source) {
            return new DayBean(source);
        }

        @Override
        public DayBean[] newArray(int size) {
            return new DayBean[size];
        }
    };
}
